﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Samurai.Infrastructure;

namespace Samurai.Client
{
    public class NotAMovieCommand : ICommand
    {
        public void Execute(object parameter)
        {
            if(parameter != null)
            {
                var movieData = (Movie) parameter;

                DAL.Manager.Instance.MarkNotAMovie(movieData);
            }
        }

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;
    }
}
